package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.MyTotalAsset;
import com.chainyoung.component_tmperson.entity.Purse;

import java.util.TreeMap;

import io.reactivex.Flowable;

public interface WalletContact {

    interface View extends IView {


        void onGetMyPurseSuccess(CommonList<Purse> data);

        void onGetMyPurseFailed();

        void onGetTotalAsset(MyTotalAsset data);

    }

    interface Model extends IModel {


        Flowable<CommonList<Purse>> getMyPurse(TreeMap<String, Object> map);

        Flowable<MyTotalAsset> getMyTotalAsset(TreeMap<String, Object> map);

    }


}
